import numpy as np
from matplotlib import pyplot as plt

us_file_path = "../US_video_data_numbers.csv"
uk_file_path = "../GB_video_data_numbers.csv"

# t1 = np.loadtxt(us_file_path,delimiter=",",dtype="int",unpack=True)
t_uk = np.loadtxt(uk_file_path, delimiter=",", dtype="int")

# 取喜欢数小500000的数据
t_uk = t_uk[t_uk[:,-1]<500000]

# 取评论数据和喜欢数据
t_uk_comment = t_uk[:, -1]
t_uk_like = t_uk[:, 1]

# 绘图
plt.figure(figsize=(20, 8), dpi=80)

plt.scatter(t_uk_like, t_uk_comment)

plt.show()
